import request from '@/utils/request'

/**
 * 获取值班日志列表
 * @param {*} query 
 * @returns 
 */
export function getLogsList(query) {
  return request({
    url: '/duty/log/list',
    method: 'get',
    params: query,
  })
}

/**
 * 修改日志
 * @param {*} data 
 * @returns 
 */
export function editLog(data) {
  return request({
    url: '/duty/log',
    method: 'put',
    data: data
  })
}